package com.example.dell.jakatra.retrofit;

/**
 * Created by johnvi on 2017/2/17.
 * mail:229200348@qq.com
 */

public class BaseAbsResponse<T> {
    private int code;
    private String msg;
    private T data;
    private String rdtUrl;

    public String getRdtUrl() {
        return rdtUrl;
    }

    public void setRdtUrl(String rdtUrl) {
        this.rdtUrl = rdtUrl;
    }

    public BaseAbsResponse() {
    }

    public BaseAbsResponse(int code, T data, String msg, String rdtUrl) {
        this.code = code;
        this.data = data;
        this.msg = msg;
        this.rdtUrl = rdtUrl;
    }

    public int getCode() {
        return code;
    }

    public BaseAbsResponse setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public BaseAbsResponse setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public T getData() {
        return data;
    }

    public BaseAbsResponse setData(T data) {
        this.data = data;
        return this;
    }

    @Override
    public String toString() {
        return "{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
